package com.gitee.deeround.javaprotect.tool;

import com.gitee.deeround.javaprotect.tool.util.CommonUtils;
import com.gitee.deeround.javaprotect.tool.util.StringUtils;
import javassist.ClassPool;


public class Context {

    public static Context Instance = new Context();

    public ClassPool Pool = ClassPool.getDefault();


    private String password;
    private String copyright;

    public void setPassword(String password) {
        this.password = CommonUtils.getMD5(password);
    }

    public void setCopyright(String copyright) {
        if (StringUtils.isEmpty(copyright)) {
            this.copyright = "=================YKT PROTECTED=================";
        } else {
            this.copyright = copyright;
        }
    }


    public String getPassword() {
        return this.password;
    }

    public String getCopyright() {
        return this.copyright;
    }


}
